<?php

namespace backend\controllers;

use backend\models\ResetPasswordForm;
use backend\models\User;
use Yii;
use yii\filters\AccessControl;
use yii\helpers\Json;
use yii\web\Response;
use yii\filters\VerbFilter;
use backend\models\LoginForm;
use backend\models\ContactForm;
use backend\components\BaseController;

class SiteController extends BaseController
{
    public $layout='main';

    /**
     * {@inheritdoc}
     */
    public function actions()
    {
        return [
            'error' => [
                'class' => 'yii\web\ErrorAction',
                'layout' => 'empty'
            ],
            'captcha' => [
                'class' => 'yii\captcha\CaptchaAction',
                'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
                'minLength' => 4,
                'maxLength' => 4
            ],
        ];
    }

    /**
     * Displays homepage.
     *
     * @return string
     */
    public function actionIndex()
    {
        return $this->render('index');
    }

    /**
     * Login action.
     *
     * @return Response|string
     */
    public function actionLogin()
    {
        $this->layout='empty';
        if (!Yii::$app->user->isGuest) {
            return $this->goHome();
        }

        $model = new LoginForm();
        if ($model->load(Yii::$app->request->post()) && $model->login()) {
            return $this->goBack();
        }
        $model->password = '';
        return $this->render('login', [
            'model' => $model,
            'siteTitle' => $this->siteTitle
        ]);
    }



    /**
     * Logout action.
     *
     * @return Response
     */
    public function actionLogout()
    {
        Yii::$app->user->logout();

        return $this->goHome();
    }


    /**
     * @return string
     */
    public function actionCloseWin()
    {
        $this->layout='empty';
        return $this->render('close-win');
    }

    /**
     * @return mixed
     */
    public function actionMain()
    {

        Yii::$app->response->format = Response::FORMAT_JSON;
        return Json::decode('[{"ymd":"汇总","active_num":15542,"new_dev_num":14647,"new_p":15041,"new_role":14827,"new_pay":51658,"new_payp":985,"new_pay_lv":0.07,"new_pay_arpu":52.44,"new_arpu":3.43,"dau_income":316100,"dau_payp":4102,"dau_pay_lv":0.12,"pay_arpu":77.06,"dau_arpu":8.97,"dau":35243,"online_avg":0,"online_max":0,"d1":"--","l1":"--","d3":"--","l3":"--","d7":"--","l7":"--","d30":"--","l30":"--"},{"ymd":"20181121","active_num":"9","new_dev_num":"7","new_p":"7","new_role":"11","new_pay":"302.00","new_payp":"1","new_pay_lv":"0.14","new_pay_arpu":"302.00","new_arpu":"43.14","dau_income":"3848.00","dau_payp":"76","dau_pay_lv":"0.19","pay_arpu":"50.63","dau_arpu":"9.55","dau":"403","online_avg":0,"online_max":0,"d1":"","l1":"","d3":"","l3":"","d7":"","l7":"","d30":"","l30":""},{"ymd":"20181120","active_num":"19","new_dev_num":"21","new_p":"25","new_role":"40","new_pay":"6.00","new_payp":"1","new_pay_lv":"0.04","new_pay_arpu":"6.00","new_arpu":"0.24","dau_income":"13276.00","dau_payp":"121","dau_pay_lv":"0.24","pay_arpu":"109.72","dau_arpu":"26.71","dau":"497","online_avg":"0","online_max":"0","d1":"","l1":"","d3":"","l3":"","d7":"","l7":"","d30":"","l30":"","l2":"","d2":""},{"ymd":"20181119","active_num":"15","new_dev_num":"18","new_p":"39","new_role":"28","new_pay":"104.00","new_payp":"2","new_pay_lv":"0.05","new_pay_arpu":"52.00","new_arpu":"2.67","dau_income":"3850.00","dau_payp":"85","dau_pay_lv":"0.16","pay_arpu":"45.29","dau_arpu":"7.31","dau":"527","online_avg":"0","online_max":"0","d1":"3","l1":"7.69%","d3":"","l3":"","d7":"","l7":"","d30":"","l30":"","l2":"","d2":""},{"ymd":"20181118","active_num":"17","new_dev_num":"11","new_p":"12","new_role":"30","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"4270.00","dau_payp":"89","dau_pay_lv":"0.17","pay_arpu":"47.98","dau_arpu":"8.24","dau":"518","online_avg":"0","online_max":"0","d1":"3","l1":"25.00%","d3":"","l3":"","d7":"","l7":"","d30":"","l30":""},{"ymd":"20181117","active_num":"18","new_dev_num":"24","new_p":"30","new_role":"50","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"5480.00","dau_payp":"95","dau_pay_lv":"0.17","pay_arpu":"57.68","dau_arpu":"9.73","dau":"563","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"","l7":"","d30":"","l30":""},{"ymd":"20181116","active_num":"28","new_dev_num":"34","new_p":"57","new_role":"56","new_pay":"274.00","new_payp":"3","new_pay_lv":"0.05","new_pay_arpu":"91.33","new_arpu":"4.81","dau_income":"9766.00","dau_payp":"101","dau_pay_lv":"0.16","pay_arpu":"96.69","dau_arpu":"15.50","dau":"630","online_avg":"0","online_max":"0","d1":"4","l1":"7.02%","d3":"4","l3":"7.02%","d7":"","l7":"","d30":"","l30":""},{"ymd":"20181115","active_num":"391","new_dev_num":"381","new_p":"395","new_role":"402","new_pay":"54.00","new_payp":"9","new_pay_lv":"0.02","new_pay_arpu":"6.00","new_arpu":"0.14","dau_income":"6066.00","dau_payp":"105","dau_pay_lv":"0.11","pay_arpu":"57.77","dau_arpu":"6.37","dau":"952","online_avg":"0","online_max":"0","d1":"34","l1":"8.61%","d3":"18","l3":"4.56%","d7":"","l7":"","d30":"","l30":""},{"ymd":"20181114","active_num":"610","new_dev_num":"559","new_p":"563","new_role":"590","new_pay":"90.00","new_payp":"11","new_pay_lv":"0.02","new_pay_arpu":"8.18","new_arpu":"0.16","dau_income":"4612.00","dau_payp":"101","dau_pay_lv":"0.09","pay_arpu":"45.66","dau_arpu":"4.15","dau":"1112","online_avg":"0","online_max":"0","d1":"47","l1":"8.35%","d3":"22","l3":"3.91%","d7":"","l7":"","d30":"","l30":""},{"ymd":"20181113","active_num":"36","new_dev_num":"30","new_p":"33","new_role":"62","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"6382.00","dau_payp":"93","dau_pay_lv":"0.15","pay_arpu":"68.62","dau_arpu":"10.26","dau":"622","online_avg":"0","online_max":"0","d1":"11","l1":"33.33%","d3":"1","l3":"3.03%","d7":"1","l7":"3.03%","d30":"","l30":""},{"ymd":"20181112","active_num":"28","new_dev_num":"34","new_p":"43","new_role":"69","new_pay":"110.00","new_payp":"2","new_pay_lv":"0.05","new_pay_arpu":"55.00","new_arpu":"2.56","dau_income":"7326.00","dau_payp":"103","dau_pay_lv":"0.15","pay_arpu":"71.13","dau_arpu":"10.93","dau":"670","online_avg":"0","online_max":"0","d1":"8","l1":"18.60%","d3":"2","l3":"4.65%","d7":"1","l7":"2.33%","d30":"","l30":""},{"ymd":"20181111","active_num":"29","new_dev_num":"22","new_p":"22","new_role":"45","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"14080.00","dau_payp":"122","dau_pay_lv":"0.18","pay_arpu":"115.41","dau_arpu":"20.86","dau":"675","online_avg":"0","online_max":"0","d1":"2","l1":"9.09%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"","l30":""},{"ymd":"20181110","active_num":"35","new_dev_num":"34","new_p":"34","new_role":"117","new_pay":"660.00","new_payp":"2","new_pay_lv":"0.06","new_pay_arpu":"330.00","new_arpu":"19.41","dau_income":"8636.00","dau_payp":"100","dau_pay_lv":"0.13","pay_arpu":"86.36","dau_arpu":"11.22","dau":"770","online_avg":"0","online_max":"0","d1":"3","l1":"8.82%","d3":"2","l3":"5.88%","d7":"2","l7":"5.88%","d30":"","l30":""},{"ymd":"20181109","active_num":"75","new_dev_num":"77","new_p":"78","new_role":"168","new_pay":"30.00","new_payp":"3","new_pay_lv":"0.04","new_pay_arpu":"10.00","new_arpu":"0.38","dau_income":"8562.00","dau_payp":"110","dau_pay_lv":"0.13","pay_arpu":"77.84","dau_arpu":"10.27","dau":"834","online_avg":"0","online_max":"0","d1":"29","l1":"37.18%","d3":"7","l3":"8.97%","d7":"6","l7":"7.69%","d30":"","l30":""},{"ymd":"20181108","active_num":"144","new_dev_num":"145","new_p":"153","new_role":"192","new_pay":"484.00","new_payp":"9","new_pay_lv":"0.06","new_pay_arpu":"53.78","new_arpu":"3.16","dau_income":"10664.00","dau_payp":"133","dau_pay_lv":"0.15","pay_arpu":"80.18","dau_arpu":"11.69","dau":"912","online_avg":"0","online_max":"0","d1":"23","l1":"15.03%","d3":"12","l3":"7.84%","d7":"5","l7":"3.27%","d30":"","l30":""},{"ymd":"20181107","active_num":"288","new_dev_num":"279","new_p":"280","new_role":"363","new_pay":"778.00","new_payp":"30","new_pay_lv":"0.11","new_pay_arpu":"25.93","new_arpu":"2.78","dau_income":"12534.00","dau_payp":"140","dau_pay_lv":"0.12","pay_arpu":"89.53","dau_arpu":"10.99","dau":"1141","online_avg":"0","online_max":"0","d1":"52","l1":"18.57%","d3":"33","l3":"11.79%","d7":"16","l7":"5.71%","d30":"","l30":""},{"ymd":"20181106","active_num":"413","new_dev_num":"397","new_p":"408","new_role":"426","new_pay":"410.00","new_payp":"37","new_pay_lv":"0.09","new_pay_arpu":"11.08","new_arpu":"1.00","dau_income":"11630.00","dau_payp":"148","dau_pay_lv":"0.12","pay_arpu":"78.58","dau_arpu":"9.33","dau":"1246","online_avg":"0","online_max":"0","d1":"110","l1":"26.96%","d3":"59","l3":"14.46%","d7":"32","l7":"7.84%","d30":"","l30":""},{"ymd":"20181105","active_num":"63","new_dev_num":"53","new_p":"58","new_role":"77","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"15054.00","dau_payp":"107","dau_pay_lv":"0.11","pay_arpu":"140.69","dau_arpu":"15.42","dau":"976","online_avg":"0","online_max":"0","d1":"7","l1":"12.07%","d3":"3","l3":"5.17%","d7":"3","l7":"5.17%","d30":"","l30":""},{"ymd":"20181104","active_num":"146","new_dev_num":"141","new_p":"144","new_role":"211","new_pay":"752.00","new_payp":"12","new_pay_lv":"0.08","new_pay_arpu":"62.67","new_arpu":"5.22","dau_income":"18482.00","dau_payp":"161","dau_pay_lv":"0.12","pay_arpu":"114.80","dau_arpu":"14.30","dau":"1292","online_avg":"0","online_max":"0","d1":"16","l1":"11.11%","d3":"11","l3":"7.64%","d7":"6","l7":"4.17%","d30":"","l30":""},{"ymd":"20181103","active_num":"1054","new_dev_num":"1025","new_p":"1037","new_role":"1118","new_pay":"3116.00","new_payp":"96","new_pay_lv":"0.09","new_pay_arpu":"32.46","new_arpu":"3.00","dau_income":"14916.00","dau_payp":"244","dau_pay_lv":"0.11","pay_arpu":"61.13","dau_arpu":"6.53","dau":"2283","online_avg":"0","online_max":"0","d1":"166","l1":"16.01%","d3":"101","l3":"9.74%","d7":"53","l7":"5.11%","d30":"","l30":""},{"ymd":"20181102","active_num":"3095","new_dev_num":"2950","new_p":"2985","new_role":"2769","new_pay":"8602.00","new_payp":"255","new_pay_lv":"0.09","new_pay_arpu":"33.73","new_arpu":"2.88","dau_income":"17464.00","dau_payp":"381","dau_pay_lv":"0.11","pay_arpu":"45.84","dau_arpu":"4.86","dau":"3593","online_avg":"0","online_max":"0","d1":"523","l1":"17.52%","d3":"231","l3":"7.74%","d7":"154","l7":"5.16%","d30":"","l30":""},{"ymd":"20181101","active_num":"3171","new_dev_num":"2972","new_p":"3018","new_role":"2750","new_pay":"8728.00","new_payp":"206","new_pay_lv":"0.07","new_pay_arpu":"42.37","new_arpu":"2.89","dau_income":"12142.00","dau_payp":"273","dau_pay_lv":"0.08","pay_arpu":"44.48","dau_arpu":"3.76","dau":"3230","online_avg":"0","online_max":"0","d1":"528","l1":"17.50%","d3":"266","l3":"8.81%","d7":"130","l7":"4.31%","d30":"","l30":""},{"ymd":"20181031","active_num":"1943","new_dev_num":"1720","new_p":"1742","new_role":"1591","new_pay":"2276.00","new_payp":"85","new_pay_lv":"0.05","new_pay_arpu":"26.78","new_arpu":"1.31","dau_income":"9628.00","dau_payp":"151","dau_pay_lv":"0.08","pay_arpu":"63.76","dau_arpu":"5.21","dau":"1847","online_avg":"0","online_max":"0","d1":"314","l1":"18.03%","d3":"153","l3":"8.78%","d7":"88","l7":"5.05%","d30":"","l30":""},{"ymd":"20181030","active_num":"57","new_dev_num":"53","new_p":"55","new_role":"53","new_pay":"30.00","new_payp":"4","new_pay_lv":"0.07","new_pay_arpu":"7.50","new_arpu":"0.55","dau_income":"2862.00","dau_payp":"39","dau_pay_lv":"0.10","pay_arpu":"73.38","dau_arpu":"7.41","dau":"386","online_avg":"0","online_max":"0","d1":"7","l1":"12.73%","d3":"8","l3":"14.55%","d7":"4","l7":"7.27%","d30":"","l30":""},{"ymd":"20181029","active_num":"472","new_dev_num":"454","new_p":"460","new_role":"407","new_pay":"406.00","new_payp":"23","new_pay_lv":"0.05","new_pay_arpu":"17.65","new_arpu":"0.88","dau_income":"2198.00","dau_payp":"48","dau_pay_lv":"0.07","pay_arpu":"45.79","dau_arpu":"3.02","dau":"728","online_avg":"0","online_max":"0","d1":"64","l1":"13.91%","d3":"42","l3":"9.13%","d7":"23","l7":"5.00%","d30":"","l30":""},{"ymd":"20181028","active_num":"25","new_dev_num":"24","new_p":"25","new_role":"43","new_pay":"6.00","new_payp":"1","new_pay_lv":"0.04","new_pay_arpu":"6.00","new_arpu":"0.24","dau_income":"5100.00","dau_payp":"56","dau_pay_lv":"0.13","pay_arpu":"91.07","dau_arpu":"11.75","dau":"434","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"","l30":""},{"ymd":"20181027","active_num":"98","new_dev_num":"95","new_p":"99","new_role":"117","new_pay":"84.00","new_payp":"3","new_pay_lv":"0.03","new_pay_arpu":"28.00","new_arpu":"0.85","dau_income":"4214.00","dau_payp":"64","dau_pay_lv":"0.11","pay_arpu":"65.84","dau_arpu":"6.97","dau":"605","online_avg":"0","online_max":"0","d1":"13","l1":"13.13%","d3":"5","l3":"5.05%","d7":"1","l7":"1.01%","d30":"","l30":""},{"ymd":"20181026","active_num":"1019","new_dev_num":"942","new_p":"956","new_role":"981","new_pay":"780.00","new_payp":"56","new_pay_lv":"0.06","new_pay_arpu":"13.93","new_arpu":"0.82","dau_income":"6410.00","dau_payp":"120","dau_pay_lv":"0.09","pay_arpu":"53.42","dau_arpu":"5.01","dau":"1279","online_avg":"0","online_max":"0","d1":"181","l1":"18.93%","d3":"77","l3":"8.05%","d7":"44","l7":"4.60%","d30":"","l30":""},{"ymd":"20181025","active_num":"2144","new_dev_num":"2012","new_p":"2137","new_role":"1869","new_pay":"6504.00","new_payp":"111","new_pay_lv":"0.05","new_pay_arpu":"58.59","new_arpu":"3.04","dau_income":"8094.00","dau_payp":"131","dau_pay_lv":"0.07","pay_arpu":"61.79","dau_arpu":"4.24","dau":"1911","online_avg":"0","online_max":"0","d1":"343","l1":"16.05%","d3":"172","l3":"8.05%","d7":"109","l7":"5.10%","d30":"","l30":""},{"ymd":"20181024","active_num":"8","new_dev_num":"10","new_p":"10","new_role":"7","new_pay":"1510.00","new_payp":"2","new_pay_lv":"0.20","new_pay_arpu":"755.00","new_arpu":"151.00","dau_income":"1852.00","dau_payp":"11","dau_pay_lv":"0.09","pay_arpu":"168.36","dau_arpu":"14.47","dau":"128","online_avg":"0","online_max":"0","d1":"3","l1":"30.00%","d3":"0","l3":"0.00%","d7":"1","l7":"10.00%","d30":"","l30":""},{"ymd":"20181023","active_num":"8","new_dev_num":"6","new_p":"6","new_role":"6","new_pay":"776.00","new_payp":"1","new_pay_lv":"0.17","new_pay_arpu":"776.00","new_arpu":"129.33","dau_income":"1292.00","dau_payp":"16","dau_pay_lv":"0.12","pay_arpu":"80.75","dau_arpu":"9.43","dau":"137","online_avg":"0","online_max":"0","d1":"1","l1":"16.67%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"","l30":""},{"ymd":"20181022","active_num":"2","new_dev_num":"8","new_p":"10","new_role":"11","new_pay":"2680.00","new_payp":"2","new_pay_lv":"0.20","new_pay_arpu":"1340.00","new_arpu":"268.00","dau_income":"7214.00","dau_payp":"29","dau_pay_lv":"0.19","pay_arpu":"248.76","dau_arpu":"47.46","dau":"152","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"1","l3":"10.00%","d7":"1","l7":"10.00%","d30":"","l30":""},{"ymd":"20181021","active_num":"2","new_dev_num":"2","new_p":"2","new_role":"3","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"344.00","dau_payp":"9","dau_pay_lv":"0.06","pay_arpu":"38.22","dau_arpu":"2.32","dau":"148","online_avg":"0","online_max":"0","d1":"1","l1":"50.00%","d3":"1","l3":"50.00%","d7":"1","l7":"50.00%","d30":"0","l30":"0.00%"},{"ymd":"20181020","active_num":"1","new_dev_num":"7","new_p":"7","new_role":"9","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"342.00","dau_payp":"11","dau_pay_lv":"0.07","pay_arpu":"31.09","dau_arpu":"2.22","dau":"154","online_avg":"0","online_max":"0","d1":"1","l1":"14.29%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"0","l30":"0.00%"},{"ymd":"20181019","active_num":"2","new_dev_num":"2","new_p":"2","new_role":"5","new_pay":"952.00","new_payp":"1","new_pay_lv":"0.50","new_pay_arpu":"952.00","new_arpu":"476.00","dau_income":"1886.00","dau_payp":"15","dau_pay_lv":"0.11","pay_arpu":"125.73","dau_arpu":"13.38","dau":"141","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"0","l30":"0.00%"},{"ymd":"20181018","active_num":"2","new_dev_num":"4","new_p":"4","new_role":"5","new_pay":"204.00","new_payp":"2","new_pay_lv":"0.50","new_pay_arpu":"102.00","new_arpu":"51.00","dau_income":"814.00","dau_payp":"14","dau_pay_lv":"0.09","pay_arpu":"58.14","dau_arpu":"5.18","dau":"157","online_avg":"0","online_max":"0","d1":"2","l1":"50.00%","d3":"2","l3":"50.00%","d7":"1","l7":"25.00%","d30":"0","l30":"0.00%"},{"ymd":"20181017","active_num":"6","new_dev_num":"11","new_p":"12","new_role":"9","new_pay":"3086.00","new_payp":"3","new_pay_lv":"0.25","new_pay_arpu":"1028.67","new_arpu":"257.17","dau_income":"4738.00","dau_payp":"26","dau_pay_lv":"0.17","pay_arpu":"182.23","dau_arpu":"30.37","dau":"156","online_avg":"0","online_max":"0","d1":"1","l1":"8.33%","d3":"1","l3":"8.33%","d7":"1","l7":"8.33%","d30":"1","l30":"8.33%"},{"ymd":"20181016","active_num":"1","new_dev_num":"4","new_p":"7","new_role":"6","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"1610.00","dau_payp":"23","dau_pay_lv":"0.14","pay_arpu":"70.00","dau_arpu":"9.64","dau":"167","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"1","l7":"14.29%","d30":"1","l30":"14.29%"},{"ymd":"20181015","active_num":"1","new_dev_num":"7","new_p":"8","new_role":"7","new_pay":"3008.00","new_payp":"2","new_pay_lv":"0.25","new_pay_arpu":"1504.00","new_arpu":"376.00","dau_income":"7384.00","dau_payp":"41","dau_pay_lv":"0.23","pay_arpu":"180.10","dau_arpu":"41.02","dau":"180","online_avg":"0","online_max":"0","d1":"1","l1":"12.50%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"0","l30":"0.00%"},{"ymd":"20181014","active_num":"3","new_dev_num":"3","new_p":"3","new_role":"8","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"1734.00","dau_payp":"19","dau_pay_lv":"0.11","pay_arpu":"91.26","dau_arpu":"10.32","dau":"168","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"1","l3":"33.33%","d7":"1","l7":"33.33%","d30":"1","l30":"33.33%"},{"ymd":"20181013","active_num":"1","new_dev_num":"4","new_p":"4","new_role":"4","new_pay":"6.00","new_payp":"1","new_pay_lv":"0.25","new_pay_arpu":"6.00","new_arpu":"1.50","dau_income":"2152.00","dau_payp":"26","dau_pay_lv":"0.14","pay_arpu":"82.77","dau_arpu":"11.96","dau":"180","online_avg":"0","online_max":"0","d1":"1","l1":"25.00%","d3":"1","l3":"25.00%","d7":"1","l7":"25.00%","d30":"1","l30":"25.00%"},{"ymd":"20181012","active_num":"6","new_dev_num":"7","new_p":"10","new_role":"14","new_pay":"4664.00","new_payp":"4","new_pay_lv":"0.40","new_pay_arpu":"1166.00","new_arpu":"466.40","dau_income":"6228.00","dau_payp":"24","dau_pay_lv":"0.13","pay_arpu":"259.50","dau_arpu":"34.22","dau":"182","online_avg":"0","online_max":"0","d1":"1","l1":"10.00%","d3":"1","l3":"10.00%","d7":"1","l7":"10.00%","d30":"1","l30":"10.00%"},{"ymd":"20181011","active_num":"3","new_dev_num":"4","new_p":"4","new_role":"8","new_pay":"168.00","new_payp":"2","new_pay_lv":"0.50","new_pay_arpu":"84.00","new_arpu":"42.00","dau_income":"3722.00","dau_payp":"21","dau_pay_lv":"0.12","pay_arpu":"177.24","dau_arpu":"20.68","dau":"180","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"0","l30":"0.00%"},{"ymd":"20181010","active_num":"2","new_dev_num":"2","new_p":"2","new_role":"2","new_pay":"6.00","new_payp":"1","new_pay_lv":"0.50","new_pay_arpu":"6.00","new_arpu":"3.00","dau_income":"1290.00","dau_payp":"19","dau_pay_lv":"0.10","pay_arpu":"67.89","dau_arpu":"7.13","dau":"181","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"0","l30":"0.00%"},{"ymd":"20181009","active_num":"8","new_dev_num":"3","new_p":"3","new_role":"4","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"1074.00","dau_payp":"19","dau_pay_lv":"0.10","pay_arpu":"56.53","dau_arpu":"5.65","dau":"190","online_avg":"0","online_max":"0","d1":"1","l1":"33.33%","d3":"1","l3":"33.33%","d7":"1","l7":"33.33%","d30":"1","l30":"33.33%"},{"ymd":"20181008","active_num":"5","new_dev_num":"4","new_p":"4","new_role":"5","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"1676.00","dau_payp":"18","dau_pay_lv":"0.09","pay_arpu":"93.11","dau_arpu":"8.18","dau":"205","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"1","l7":"25.00%","d30":"0","l30":"0.00%"},{"ymd":"20181007","active_num":"1","new_dev_num":"3","new_p":"3","new_role":"4","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"2464.00","dau_payp":"33","dau_pay_lv":"0.15","pay_arpu":"74.67","dau_arpu":"11.20","dau":"220","online_avg":"0","online_max":"0","d1":"1","l1":"33.33%","d3":"0","l3":"0.00%","d7":"1","l7":"33.33%","d30":"0","l30":"0.00%"},{"ymd":"20181006","active_num":"5","new_dev_num":"2","new_p":"2","new_role":"6","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"2274.00","dau_payp":"25","dau_pay_lv":"0.11","pay_arpu":"90.96","dau_arpu":"10.11","dau":"225","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"0","l30":"0.00%"},{"ymd":"20181005","active_num":"3","new_dev_num":"4","new_p":"4","new_role":"5","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"1834.00","dau_payp":"32","dau_pay_lv":"0.14","pay_arpu":"57.31","dau_arpu":"7.84","dau":"234","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"0","l30":"0.00%"},{"ymd":"20181004","active_num":"7","new_dev_num":"9","new_p":"9","new_role":"15","new_pay":"6.00","new_payp":"1","new_pay_lv":"0.11","new_pay_arpu":"6.00","new_arpu":"0.67","dau_income":"4134.00","dau_payp":"40","dau_pay_lv":"0.16","pay_arpu":"103.35","dau_arpu":"16.02","dau":"258","online_avg":"0","online_max":"0","d1":"3","l1":"33.33%","d3":"2","l3":"22.22%","d7":"1","l7":"11.11%","d30":"1","l30":"11.11%"},{"ymd":"20181003","active_num":"5","new_dev_num":"11","new_p":"12","new_role":"13","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"2112.00","dau_payp":"29","dau_pay_lv":"0.11","pay_arpu":"72.83","dau_arpu":"8.12","dau":"260","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"0","l30":"0.00%"},{"ymd":"20181002","active_num":"9","new_dev_num":"9","new_p":"11","new_role":"19","new_pay":"0.00","new_payp":"0","new_pay_lv":"0.00","new_pay_arpu":"0.00","new_arpu":"0.00","dau_income":"2072.00","dau_payp":"34","dau_pay_lv":"0.12","pay_arpu":"60.94","dau_arpu":"7.10","dau":"292","online_avg":"0","online_max":"0","d1":"2","l1":"18.18%","d3":"0","l3":"0.00%","d7":"0","l7":"0.00%","d30":"0","l30":"0.00%"},{"ymd":"20181001","active_num":"9","new_dev_num":"7","new_p":"7","new_role":"17","new_pay":"6.00","new_payp":"1","new_pay_lv":"0.14","new_pay_arpu":"6.00","new_arpu":"0.86","dau_income":"8312.00","dau_payp":"71","dau_pay_lv":"0.23","pay_arpu":"117.07","dau_arpu":"26.64","dau":"312","online_avg":"0","online_max":"0","d1":"0","l1":"0.00%","d3":"1","l3":"14.29%","d7":"1","l7":"14.29%","d30":"1","l30":"14.29%"}]');
    }


    /**
     * @return string|\yii\web\Response
     * 登录页面
     */
    public function actionLoginvercode()
    {
        $this->view->params['activeTab'] = 8;
        return $this->domainRender('loginvercode');
    }
}
